package cn.edu.scau.cmi.yejiancong.ORM_hibernate.entiry;

import java.util.HashSet;
import java.util.Set;

import javax.persistence.OrderBy;

public class Teacher {
	private int teacherid;
	private String teachername;
	private Set<Student> students=new HashSet<>();
	private Set<Student> introducerStudent=new HashSet<>();
	public int getTeacherid() {
		return teacherid;
	}
	public void setTeacherid(int teacherid) {
		this.teacherid = teacherid;
	}
	public String getTeachername() {
		return teachername;
	}
	public void setTeachername(String teachername) {
		this.teachername = teachername;
	}
	public Set<Student> getStudents() {
		return students;
	}
	public void setStudents(Set<Student> students) {
		this.students = students;
	}
	public Set<Student> getIntroducerStudent() {
		return introducerStudent;
	}
	public void setIntroducerStudent(Set<Student> introducerStudent) {
		this.introducerStudent = introducerStudent;
	}
	
	@Override
	public String toString() {
		return "Teacher id: ["+teacherid+ "] teacher name: "+teachername;
	}

}
